package algorithm.structure.tree.common;

import algorithm.structure.tree.inter.BaseNodeKeySYT;

public class NodeKeySYT implements Comparable<NodeKeySYT> , BaseNodeKeySYT{
	private int value;
	
	public int getValue() {
		return value;
	}
	public void setValue(int value) {
		this.value = value;
	}
	public int compareTo(NodeKeySYT o) {
		int result = 0;
		if(value > o.getValue()){
			result = 1;
		}else if (value < o.getValue()){
			result = -1;
		}
		return result;
	}
}
